﻿#include "graphicsview.h"
#include <QKeyEvent>
#include <QtDebug>
#include <QTimer>
#include "graphicsscene.h"

GraphicsView::GraphicsView(QWidget *parent) : QGraphicsView(parent)
{
//    this->resize(600,450);
//    setWindowFlags (Qt::FramelessWindowHint);
//    this->showFullScreen();     //全屏

    scene = new GraphicsScene();
    this->setScene(scene);
}

void GraphicsView::game_start()
{
    scene->game_start();
}
